# @Author   :   yuanxi
# @Time      :  2022/1/11

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.indexPage import IndexPage
from commen.page.ann.annApplication.coronaPage import coronaPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage


class CoronaCase(UIParent):

    @classmethod
    def test_coronaIndexCheck(self):
        '''新型肺炎防控首页校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("新型肺炎防控")
        authorizePage.ifAuthorize()

        status = coronaPage.coronaIndex()
        asserts.true(status, "新型肺炎防控首页校验")
